package com.deng.maintenance.dao;

import java.math.BigDecimal;
import java.sql.Connection;
import java.util.Date;
import java.util.List;

import com.deng.maintenance.vo.RuleGroupVo;
import com.deng.maintenance.vo.RuleVo;

public interface IRuleEdit {
	//GROUP:			organization_id,name,group_id,is_mark
	//UNIT:				group_id,is_mark,unit_id,type_name,value,organization_id

	public void addOrUpdateRuleGroup(RuleGroupVo gVo);
	public void addRule(int organization_id,String group_id,List<RuleVo> ruleList);
	public void deleteRule(int organization_id,String group_id);
	public List<RuleVo> getRuleByGroup(int organization_id,String group_id);
	public List<RuleGroupVo> getAllRuleGroup(int organization_id,Connection conn);
	public void addRuleGroup(List<RuleGroupVo> groupList);
	public void addRuleUnit(List<RuleVo> ruleList);
	public void switchRuleGroup(RuleGroupVo gv1,RuleGroupVo gv2);
	public void switchRule(RuleVo gv1,RuleVo gv2);
	public void deleteGroup(RuleGroupVo vo);
	public void saveSP(int organization_id,int is_fee,int key);
	public BigDecimal testUnitCount(int organization_id,int duty_id,Date stat_time,String start_time,String end_time);
}
